package com.it.d6_interface;

public class Test {
    public static void main(String[] args) {
        // 目标：搞清楚使用接口的好处

        Student s = new A();
    }
}

class A extends Student implements Driver,Singer{

    @Override
    public void driver() {

    }

    @Override
    public void singer() {

    }
}

class Student {

}

interface Driver {
    void driver();
}

interface Singer {
    void singer ();
}